﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestCompoundIntrestCalculator.aspx.cs" Inherits="CRMWeb.Pages.Test.TestCompoundIntrestCalculator" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:Label ID="Label1" runat="server" Text="No. of Days:" Width="150px"></asp:Label>
            <asp:TextBox ID="txtNumberofDays" runat="server" Width="150px">7</asp:TextBox>
            <br />
            <asp:Label ID="Label2" runat="server" Text="Principal:" Width="150px"></asp:Label>
            <asp:TextBox ID="txtPrincipal" runat="server" Width="150px">1600</asp:TextBox>
            <br />
            <asp:Label ID="Label3" runat="server" Text="Loan Duration:" Width="150px"></asp:Label>
            <asp:TextBox ID="txtLoanDuration" runat="server" Width="150px">52</asp:TextBox>
            Weeks
            <br />
            <asp:Label ID="Label4" runat="server" Text="Interest rate:" Width="150px"></asp:Label>
            <asp:TextBox ID="txtInterestRate" runat="server" Width="150px">48</asp:TextBox>
            <br />
            <asp:Label ID="Label16" runat="server" Text="Loan Date:" Width="150px"></asp:Label>
            <asp:TextBox ID="txtLoanDate" runat="server" Width="150px">03/02/2014</asp:TextBox>
            (dd/MM/yyyy)
            <br />
            <asp:Label ID="Label5" runat="server" Text="First Repayment Date:" Width="150px"></asp:Label>
            <asp:TextBox ID="txtFirstRepaymentDate" runat="server" Width="150px">05/02/2014</asp:TextBox>
            (dd/MM/yyyy)
            <br />
            <asp:Label ID="Label6" runat="server" Text="Last Repayment Date:" Width="150px"></asp:Label>
            <asp:TextBox ID="txtLastRepaymentDate" runat="server" Width="150px">21/01/2015</asp:TextBox>
            (dd/MM/yyyy)
            <br />
            <asp:Label ID="Label7" runat="server" Text="No of Installments:" Width="150px"></asp:Label>
            <asp:TextBox ID="txtNoofInstallments" runat="server" Width="150px">52</asp:TextBox>
            <br />
            <asp:Label ID="Label8" runat="server" Text="Repayment:" Width="150px"></asp:Label>
            <asp:TextBox ID="txtRepayment" runat="server" Width="150px">39.59</asp:TextBox>
            <br />
            <asp:Label ID="Label9" runat="server" Text="Days in a year:" Width="150px"></asp:Label>
            <asp:TextBox ID="txtDaysinayear" runat="server" Width="150px">365</asp:TextBox>
            <br />
            <br />
            Payment schedule(compound interest):
            &nbsp;
            <asp:Button ID="Button3" runat="server" Text="compound Interest (by Repayment)" OnClick="Button3_Click" Width="250px" />
            <br />
            <br />
            <asp:Label ID="Label10" runat="server" Text="Pre-EMI Interest:" Width="150px"></asp:Label>
            <asp:Label ID="lblPreEMIInterest" runat="server" Text="0.00" Width="150px"></asp:Label>
            <br />
            <asp:Label ID="Label11" runat="server" Text="Initial Installment:" Width="150px"></asp:Label>
            <asp:Label ID="lblInitialInstallment" runat="server" Text="0.00" Width="150px"></asp:Label>
            <br />
            <asp:Label ID="Label13" runat="server" Text="Balance:" Width="150px"></asp:Label>
            <asp:Label ID="lblBalance" runat="server" Text="0.00" Width="150px"></asp:Label>
            <br />
            <asp:Label ID="Label15" runat="server" Text="EMI-Last Installment:" Width="150px"></asp:Label>
            <asp:Label ID="lblEMILastInstallment" runat="server" Text="0.00" Width="150px"></asp:Label>
            <br />
            <asp:Label ID="Label17" runat="server" Text="Difference:" Width="150px"></asp:Label>
            <asp:Label ID="lblDifference" runat="server" Text="0.00" Width="150px"></asp:Label>
            <br />
            <asp:Label ID="Label19" runat="server" Text="PV of EMIs:" Width="150px"></asp:Label>
            <asp:Label ID="lblPVofEMIs" runat="server" Text="0.00" Width="150px"></asp:Label>
            <br />
            <asp:Label ID="Label21" runat="server" Text="Revised Repayment:" Width="150px"></asp:Label>
            <asp:Label ID="lblRevisedRepayment" runat="server" Text="0.00" Width="150px"></asp:Label>
            <br />
            <asp:Label ID="Label23" runat="server" Text="Trial rate for Comp Intt rate:" Width="150px"></asp:Label>
            <asp:Label ID="lblTrialrateforCompIntt" runat="server" Text="0.00" Width="150px"></asp:Label>
            <br />
            <asp:Label ID="Label12" runat="server" Text="Total Intrest:" Width="150px"></asp:Label>
            <asp:Label ID="lblTotalIntrest" runat="server" Text="0.00" Width="150px"></asp:Label>
            <br />
            <asp:Label ID="Label14" runat="server" Text="Comparison Rate:" Width="150px"></asp:Label>
            <asp:Label ID="lblComparisonRate" runat="server" Text="0.00" Width="150px"></asp:Label>
            <br />
            <asp:GridView ID="dvSchedule" runat="server" Width="100%">
            </asp:GridView>
        </div>
    </form>
</body>
</html>
